package com.yuanqiao.interfaceforlc.uploadmatterandfile.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;
import java.util.Map;


@RequestMapping("/api")
public interface upload {
    //上传接口
    @RequestMapping("/upload/{uploadtype}/{serialNo}/{docId}/{docNo}/{fileId}/{fileId}/{fileNo}")
    @ResponseBody
    List uploadmatterandfile(@PathVariable(value="uploadtype")String uploadtype, @PathVariable(value="serialNo") String serialNo, @PathVariable(value="docId") String docId, @PathVariable(value="docNo") String docNo, @PathVariable(value="fileId") String fileId , @PathVariable(value="fileNo") String fileNo, MultipartFile[] file) throws IOException;
    //删除接口
    @RequestMapping("/delete/{id}")
    @ResponseBody
    boolean deletefile(@PathVariable(value="id") String id);
    //合成总PDF接口
    @RequestMapping("/compose/{serialNo}/{fileId}")
    @ResponseBody
    String composePDF(@PathVariable(value="serialNo") String serialNo,@PathVariable(value="fileId") String fileId);
    //合成模板PDF接口
    @RequestMapping(value="/modeltoPDF/{serialNo}/{docId}/{docNo}/{fileId}/{fileNo}")
    @ResponseBody
    String modeltoPDF(@PathVariable(value="serialNo")String serialNo,@PathVariable(value="docId")String docId,@PathVariable(value="docNo")String docNo,@PathVariable(value="fileId")String fileId,@PathVariable(value="fileNo")String fileNo/*,@PathVariable(value="data")String data*/);
}

